#https://leetcode-cn.com/problems/kids-with-the-greatest-number-of-candies/
# 1431. 拥有最多糖果的孩子
from typing import List


class Solution:
    def kidsWithCandies(self, candies: List[int], extraCandies: int) -> List[bool]:
        large=max(candies)
        ret=[]
        for i in  candies:
            if i +extraCandies>=large:
                ret.append(True)
            else:
                ret.append(False)
        return ret

if __name__ == '__main__':
    Solution().kidsWithCandies([2,3,5,1,3],3)